//任务待提货 - 列表
import request from '@/utils/request.js'
export const deliveryList = (data) => {
	return request.get('/driver/tasks/list', data)
}

//任务详情  列表
export const particulars = (jobId) => {
	return request.get(`/driver/tasks/details/${jobId}`)
}

//提货列表
export const pickUp = (data) => {
	return request.post('/driver/tasks/takeDelivery', data)
}

/**
 *  延迟提货
 */
export const delayApi = (data) => {
	return request.put(`/driver/tasks/delay`, data)
}

/**
 * 上报异常
 */
export const exceptApi = (data) => {
	return request.post('/driver/tasks/reportException', data)
}

//交付
export const delivery = (data) => {
	return request.post('/driver/tasks/deliver', data)
}

//回车登记
export const recordApi = (data) => {
	return request.post('/driver/tasks/truckRegistration', data)
}